package fr.paris.lutece.plugins.customisation.dnd.update;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;


/**
 * Servlet that receives XMLHttpRequests, in order to update the portlets positions
 * after a drag and drop, or the columns width, after resizing.
 * 
 * @author Team LutecePP[ENSEIRB]
 */

public class DoUpdatePortletPositionServlet extends HttpServlet {

	private static final long serialVersionUID = 1L;
	
	/**
	 * Receive XHR request
	 */
	public void doPost(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		
		PositionUpdateManager.getPositionUpdateManager().update(req);
		
	}
	
}
